<?php 
$sql = mysql_query("select * from tb_materi");
?>
    <div id="menu">
        <ul>
		<?php while ($row = mysql_fetch_array($sql))
			{
				echo'<li><a href="materi.php?id='.$row['id_materi'].'">'.$row['menu'].'</a></li>';
            }
		?>
        </ul>
    </div>
    